<template>
	<view class="content">
		<c-button type="primary"
		disabled>默认按钮</c-button>
		
		<c-button type="info" 
		loading
		hover-start-time=1000
		hover-stay-time=1000></c-button>
		
		<c-button type="primary" 
		loading
		loading-type = "spinner"
		loading-color="#ffffff"
		loading-size="40"
		loading-text="加载中..."
		loading-text-size="30"></c-button>
		
		<!-- 自定义组件点击事件绑定把 @click 换成 @click.native,监听组件根元素的原生事件 -->
		<c-button @click.native="greet">获取用户手机号回调</c-button> 
		
		<c-button open-type="launchApp" @error="err">获取err回调</c-button> 
		
		<view class="" @click="greet">666</view>
	</view>
</template> 

<script>
	export default {
		data() {
			return {
			}
		},
		mounted() {
		
		}, 
		methods: {
			greet:function(){
				uni.showToast({
					title:"无权限",
					icon:"none"
				})
			}
		}
	}
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}
</style>
